package com.example.todo_app.model;

import java.io.Serializable;
import com.j256.ormlite.field.DatabaseField;
import android.os.Parcel;
import android.os.Parcelable;

public class ListElement implements Parcelable, Serializable   {
	
	@DatabaseField(generatedId = true)
	private int id;
	@DatabaseField
	private CharSequence Name;
	@DatabaseField
	private CharSequence Description;
	@DatabaseField
	private CharSequence Prio;
//	private Calendar ablaufdatum = new GregorianCalendar();


	public ListElement(CharSequence name, CharSequence description, String prio) {
		this.Name = name;
		this.Description = description;
		this.Prio = prio;
	}

	public CharSequence getName() {
		return Name;
	}

	public void setName(String name) {
		Name = name;
	}

	public CharSequence getDescription() {
		return Description;
	}

	public void setDescription(String description) {
		Description = description;
	}

	public CharSequence isPrio() {
		return Prio;
	}

	public void setPrio(String prio) {
		Prio = prio;
	}
	
	@Override
	public String toString(){
		return (this.Name.toString());
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel arg0, int arg1) {
		// TODO Auto-generated method stub
		
	}
	
	

}
